﻿namespace StarsAdmin.Application.Api.Dtos
{
    public class AddApiInput
    {
        /// <summary>
        /// 接口或者控制器名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 接口或者控制器注释
        /// </summary>
        public string? Label { get; set; }

        /// <summary>
        /// 接口地址
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 接口提交方法
        /// </summary>
        public string? HttpMethod { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; } = 1;

        /// <summary>
        /// 启用
        /// </summary>
        public bool IsEnabled { get; set; } = true;

        /// <summary>
        /// 权限字段
        /// </summary>
        public string? PermissionFields { get; set; }

        /// <summary>
        /// 所属模块
        /// </summary>
        public long? ParentId { get; set; }

        public List<AddApiInput> Children { get; set; } = new List<AddApiInput>();
    }
}